function get_genre()
{
	var string = "";
	var array = new Array();
	var int = 0;
	
	$("#hotn_animelist_project_list_genre").find("input[name$='genre']").each(function()
	{
		if ($(this).attr('checked'))
		{
			array[int] = $(this).attr('value');
			int++;
		}
    });
	
	if (array.length==0)
		return 0;
	else
		return implode("-",array);
}

function implode( glue, pieces ) 
{  
	return ( ( pieces instanceof Array ) ? pieces.join ( glue ) : pieces );  
}